<?php if($sf_user->isAuthenticated() and $sf_user->hasCredential('roditelj'))
{
   $ucenik = $uceniks[0]; echo link_to('<img src="/static/images/meni1.jpg" width="220" height="103" border="0" alt="dnevnik" />', 'home/dnevnik?ucenik_id='.$ucenik->getId(), array('target' => '_blank', 'onclick' => 'popup(this.href, "Školski dnevnik '.$ucenik->joinIme().'", 1024, 800); return false;'));

}

